<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <body>
        <ui:composition template="../plantilla/plantilla.xhtml">
            <ui:define name="content">
<!--                <p:gmap center="41.381542, 2.122893" zoom="15" type="HYBRID"
        style="width:600px;height:400px" />-->
<p:dataTable var="row" emptyMessage="No se encontraron registros"  
             value="a" paginatorPosition="bottom"
                         paginator="true" rows="2"  style="width: 100%; float: left"
                        id="listaInterTable">
                        <p:column >
                            <p:panel style="margin-bottom: 20px">
                                <h:panelGrid columns="1" >
                                    <p:commandButton value="Mostrar mapa" action="#{pruebaMapBean.caragDialog}" update=":form:dialog"/>
                                </h:panelGrid>
                            </p:panel>
                        </p:column>
</p:dataTable>
                
                
                <p:dialog id="dialog" widgetVar="dialog" modal="true" showEffect="clip" hideEffect="explode" width="650" height="560" >
                    <h:panelGrid columns="1" style="width: 600px;">   
                        <p:gmap center="13.706881, -89.21373179999999" zoom="13" type="HYBRID"
                                style="width:600px;height:400px" model="#{pruebaMapBean.simpleMapModel}">
                             
                        </p:gmap>
                    </h:panelGrid>
                </p:dialog>
                    
            </ui:define>
        </ui:composition>
    </body>
</html>
